package com.tangyuan.answer.service;

import com.tangyuan.common.result.Result;
import com.tangyuan.dto.AnswerCollentDto;
import com.tangyuan.dto.RemoveBojectDto;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;


public interface AnswerService {
    Result addAnswer(String token,AnswerCollentDto answerCollentDto) ;

    Result getAnswer(String token, Long id,Long gradeId,Integer pageNum,Integer pageSize);

    Result addObject(String token, String name);

    Result getObject(String token);

    Result removeObject(String token, RemoveBojectDto removeBojectDto);

    Result serAnswerName(String token, String name,Long id);

    Result removeAnswerName(String token, Long id);

    Result getFirstObject(String token);

    Result getAllObject(String token);

    Result addAnswerPicture(String token, MultipartFile file);

    Result updateAnswer(String token, Long id,Long answerObjectId,Long gradeId,String url);

    Result answerToPaper(String token, MultipartFile file,Long objectId,Long gradeId,String paperUrl);

    Result getPaperById(String token, Long objectId,Long gradeId,Integer pageNum,Integer pageSize);

    Result removePaperById(String token, Long id);

    Result erasePicture(String token, String eraseUrl) throws IOException;

    Result addAnswerObjectGrade(Long userId, String gradeName, Long answerObjectId);

}
